package com.test.rabbitmq;

public abstract class BaseThread extends Thread {

    @Override
    public void run() {
        try {
            execute();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public abstract void execute() throws Exception;
}
